<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.BrowseProblemAction"%>
<%@page import="com.shsh.safemanage.model.Problem"%>
<%@page import="com.shsh.safemanage.model.AccidentFacade"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>

<%
{
BrowseProblemAction browseAction = ActionCreator.createBrowseProblemAction();
List<AccidentFacade> facadeList = browseAction.browseAccidents(request);
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:12px;">
	<tr>
		<td width="8"  class="appbg">&nbsp;</td>
		<td width="85" class="appbg"><img src="images/trace.gif"  style="vertical-align:middle;"/>查询结果</td>
		<td width="229" class="appbg">&nbsp;</td>
		<td width="58" class="appbg">&nbsp;</td>
		<td width="84" class="appbg">&nbsp;</td>
		<td width="74" class="appbg">&nbsp;</td>
		<td colspan="8" class="appbg">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan="13" height="40">查询到<font color="#FF0000"><%=facadeList.size()%></font>条记录。</td>
	</tr>
	<tr style="font-weight: bold" align="center">
		<td class="a_text2" width="10%" colspan="2">作业部（业务中心）</td>
		<td class="a_text2" width="10%">装置</td>
		<td class="a_text2" width="6%">事故类型</td>
		<td class="a_text2" width="15%">事故名称</td>
		<td class="a_text2" width="8%">事故发生时间</td>
		<td class="a_text2" width="7%">事故情况登记表</td>
		<td class="a_text2" width="7%">事故信息单</td>
		<td class="a_text2" width="7%">事故快报</td>
		<td class="a_text2" width="7%">事故报表</td>
		<td class="a_text2" width="7%">事故四不放过检查表（1）</td>
		<td class="a_text2" width="7%">事故四不放过检查表（2）</td>
		<td class="a_text2" width="7%">事故四不放过检查表（3）</td>
		<td width="17"></td>
	</tr>
	<%
	int theRow = 0;
	for (AccidentFacade theFacade : facadeList) {
		theRow++;
		request.setAttribute(Constants.REQUEST_ATTRIBUTE_ROW, theRow);
		request.setAttribute(Constants.REQUEST_ATTRIBUTE_ACCIDENT_FACADE, theFacade);
	%>
	<%@include file="/accident/accident_list_row.jsp" %>
	<%
	}
	%>
</table>
<%
}
%>